package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 培训考勤对象 TRAINING_CADET_ATTENDANCE
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingCadetAttendance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 培训考勤ID
     */
    private String attendanceId;

    /**
     * 考勤日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date attendanceTime;

    /**
     * 午别ID
     */
    private String farewellId;

    /**
     * 考勤类型ID
     */
    private String attendanceTypeId;

    /**
     * 考勤状态（1：保存；2：提交；3：审核）
     */
    private String attendanceStatus;

    /**
     * 提交人
     */
    private Long submitBy;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /**
     * 审核人
     */
    private Long auditBy;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /**
     * 创建人
     */
    private Long modifyBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;


    /**
     * 培训基地ID
     */
    @Excel(name = "培训基地ID")
    private String baseId;

    /**
     * 培训基地名称
     */
    @Excel(name = "培训基地名称")
    private String baseName;

    /**
     * 培训科室ID
     */
    @Excel(name = "培训科室ID")
    private String deptId;

    /**
     * 培训科室名称
     */
    @Excel(name = "培训科室名称")
    private String deptName;

    /**
     * 培训学员ID
     */
    @Excel(name = "培训学员ID")
    private String cadetId;

    /**
     * 培训学员名称
     */
    @Excel(name = "培训学员名称")
    private String cadetName;

    /**
     * 培训导师ID
     */
    @Excel(name = "培训导师ID")
    private String mentorId;

    /**
     * 培训导师名称
     */
    @Excel(name = "培训导师名称")
    private String mentorName;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("attendanceId", getAttendanceId())
                .append("cadetId", getCadetId())
                .append("attendanceTime", getAttendanceTime())
                .append("farewellId", getFarewellId())
                .append("attendanceTypeId", getAttendanceTypeId())
                .append("attendanceStatus", getAttendanceStatus())
                .append("submitBy", getSubmitBy())
                .append("submitTime", getSubmitTime())
                .append("auditBy", getAuditBy())
                .append("auditTime", getAuditTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .append("baseId", getBaseId())
                .append("baseName", getBaseName())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("mentorId", getMentorId())
                .append("mentorName", getMentorName())
                .toString();
    }
}
